package top.xia17.plugins.fast.quartz.api.entity;

import top.xia17.plugins.fast.common.database.jpa.extension.JpaEntity;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.Accessors;

import jakarta.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * quartz定时任务的执行日志(QuartzLog)实体类
 *
 * @author makejava
 * @since 2022-06-13 17:51:48
 */
@Entity
@Table(name = "sys_quartz_log")
@Accessors(chain = true)
@Getter
@Setter
@NoArgsConstructor
public class QuartzLog implements JpaEntity<Long>, Serializable {
    private static final long SERIAL_VERSION_UID = 114313681805679288L;

    /**
     * 主键
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    /**
     * 任务名
     */
    private String jobName;

    /**
     * SpringBean名称
     */
    private String beanName;

    /**
     * 方法名称
     */
    private String methodName;

    /**
     * 参数
     */
    private String param;

    /**
     * cron表达式
     */
    private String cron;

    /**
     * 是否执行成功
     */
    private Boolean isSuccess;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 执行时间
     */
    private String time;

    /**
     * 异常细节
     */
    private String exceptionDetail;


}

